import { selectOrderInfo, selectOrderInfoById } from '../service/orderInfo.js';

/* 获取地址信息 */
let getOrder = async (ctx, next) => {
  selectOrderInfo(ctx, next);
};

/* 根据id获取地址信息 */
let getOrderById = async (ctx, next) => {
  selectOrderInfoById(ctx, next);
};

/* 注意请求方式后面的空格 */
export default {
  'GET /order': getOrder,
  'GET /order/:id': getOrderById
};